﻿using DotNetCore.CAP;
using J.M.Inventory.Application.IInventoryServices;
using J.M.Inventory.Application.InventoryServices;
using J.M.Inventory.Domain.Entity;
using J.M.Inventory.Infrastruecure.InventoryRepository;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace J.M.Inventory.Read.API.Controllers
{
    /// <summary>
    /// 入库类型控制器
    /// </summary>
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class Enter_warehouseReadController : ControllerBase
    {
         private readonly IEnter_warehouseServices _enter_WarehouseServices;

        public Enter_warehouseReadController(IEnter_warehouseServices enter_WarehouseServices)
        {
            this._enter_WarehouseServices = enter_WarehouseServices;
        }
        /// <summary>
        /// 查看所有的入库类型
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public async Task<List<enter_warehouse>> GetWarehouse()
        {
            return await _enter_WarehouseServices.GetWarehouse();
        }
    }
}
